<template>
  <div id="app">
     <img class="bgImg" :src="bgImg" /> 
    <router-view></router-view>
</div>
</template>


<script>

export default {
  created(){
    this.$nextTick(() => {
        document.onselectstart = new Function("event.returnValue=false");
    });
  },
  data() {
    return {
      sutips:'',
      bgImg:'',
      imgUrl:'',

    };
  },
  mounted(){
    this.$bus.$on("bgImg",value=>{
        if(value){
          this.bgImg=value
        }   
    });
    var _this = this;
            window.onresize = function(){ 
                _this.winWidth = window.innerWidth
                console.log(  _this.winWidth)
            };
  }

}
</script>

<style>
  /* 全局样式 */
  body {
      margin: 0;
      padding: 0;
      font-family: Arial, sans-serif;
    }

    /* 手机屏幕样式 */
    /* @media screen and (max-width: 812px) {
      /* 设置手机屏幕样式 */
      /* 例如设置页面最大宽度为320px，居中对齐 */
      /* body {
        max-width: 320px;
        margin: 0 auto;
      }
    } */ 

    /* 平板/桌面屏幕样式 */
    @media screen and (min-width: 812px) {
      /* 设置平板/桌面屏幕样式 */
      /* 例如设置页面最大宽度为960px，居中对齐 */
      body,html{
        max-width: 960px;
        margin: 0 auto;
      }
    }

html,body{
  width:100%;
  height: 100%;
}


#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
   height: 100%;
   position: relative;
}

.bgImg{
  width: 100%;
  height: 100%;
  position:absolute;
  left:0;
  top:0;
  z-index: -1;

}
.fr{
  float:right;
}
.container{
  display: flex;
  justify-content: center;
  align-items: center;
  width:100%;
  height: 100%;
  position:relative;
}
.login-page{
  width:76%;
  background: #FFFFFF;
  box-shadow: -1px 11px 40px 1px rgba(16,5,11,0.17);
  border-radius: 20px 20px 20px 20px;
  padding:40px;
  
}
.clearfix {
  zoom: 1;
}

.clearfix:after {
  clear: both;
  display: block;
  content: "";
  height: 0px;
  overflow: hidden;
}
.noData{
  font-size:34px;
}
.login-page .loginIn{
  margin-top: 80px;
}
.login-page .loginIn-btn {
  border-radius: 10px 10px 10px 10px;
  background-color: #BF1A20;
  border: 1px solid #BF1A20;
 
  font-size: 30px;
  height: 90px;
  line-height: 90px;

}

.login-page .van-tab {
  font-size: 34px;
  color: #6666;
}

.login-page .van-tab--active {
  color: #BF1A20;
  font-weight: 500;
}

.login-page .van-cell-group {
  margin: 30px 0;
}

.login-page  .van-cell {
  background: #F5F5F5;
  border-radius: 5px 5px 5px 5px;
  margin: 20px 0;
  font-size: 36px;
  padding: 0 16px;
  height: 80px;
  line-height: 80px;
  margin: 26px auto;

}

.login-page  .van-field__control {
  appearance: menulist-button;
  background-image: none !important;
  background-color: #F5F5F5 !important;
  font-size: 30px;
  padding: 0 10px;
}

.login-page .van-field__left-icon .van-icon,
.login-page .van-field__right-icon .van-icon {
  color: #999999;
  font-size: 46px;
}

.login-page .van-icon-checked {
  font-size: 40px !important;
}
.set-page{
  min-height:560px;
  position: relative;
}
.set-page .loginIn{
  position: absolute;
  bottom:30px;
  width:86%;
  left:50%;
  transform: translate(-50%,-50%);

}
.set-page .van-cell-group{
   margin-top:60px;

}
.login-page .h2{
 text-align: center;
}
.login-page .moreInfo{
  margin:20px auto;
  font-size:26px;
}
.sutips{
  position: absolute;
  bottom:50px;
  width:80%;
  text-align: center;
  font-size:24px;
  white-space: pre-line
  
}
</style>
